﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace AlertSystem.Dab.LK
{
    public class LkKeysLoadParser:ILoadParser<LkKeysAlertItem>
    {
       public LkKeysAlertItem ParceFrom(object item)
        {
            var dr = item as DataRow;
            if (dr == null || dr.GetType() != typeof(DataRow)) throw new ArgumentException("item");

            return new LkKeysAlertItem(dr);
        }


        public Type GetAlertType()
        {
            return typeof(LkKeysAlertItem);
        }
    }
}
